package com.yl.auth.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author ln
 * @since 2023-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "床位管理")
public class Chuangwei implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Long id;

    /**
     * 床位号
     */
    @ApiModelProperty("床位号")
    private String bedNo;

    /**
     * 入住人id
     */
    @ApiModelProperty("入住人id")
    @TableField("laoren_id")
    private Long laorenId;

    /**
     * 创建人id
     */
    @ApiModelProperty("创建人id")
    private Long adminId;

    /**
     * 创建人
     */
    @ApiModelProperty("创建人chuangjianname字段")
    private String chuangjianname;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    /**
     * 0未入住 1已入住 2预定
     */
    @ApiModelProperty("状态id")
    private Integer status;

    /**
     * 房间id
     */
    @ApiModelProperty("房间id")
    private Long roomId;

    /**
     * 老人姓名
     */
    @TableField(exist = false)
    private String mannametwo;
    /**
     * 入住价格
     */
    @ApiModelProperty("入住价格")
    @TableField(exist = false)
    private Double price;
    /**
     * 前端fangchuang页面的床位号
     */
    @ApiModelProperty("前端fangchuang页面的床位号")
    @TableField(exist = false)
    private String chuangName;
    /**
     * 创始人姓名
     */
    @TableField(exist = false)
    @ApiModelProperty("创始人姓名")
    private String name;
    /**
     * 0未入住 1已入住 2预定
     */
    @TableField(exist = false)
    @ApiModelProperty("状态名字")
    private String statusName;

    /**
     * 判断老人存在不存在
     */
    @TableField(exist = false)
    private Integer count;
    /**
     * 房间号
     */
    @TableField(exist = false)
    private Integer fangname;

    /**
     * 房间实体类
     */
    @ApiModelProperty("房间实体类")
    @TableField(exist = false)
    private Fangjian fangjian;

    @ApiModelProperty("床位的价格下单时用的（天）")
    @TableField(exist = false)
    private double xiaPrice;

    @ApiModelProperty("床位加上总天数的价格")
    @TableField(exist = false)
    private double xiaTotal;

    @TableField(exist = false)
    private RuyuanfeiBean ruyuanfeiBean;

}
